package com.none.web.model;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "rgt_bookinfo")
public class TBookinfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2686732113965717467L;
	@Id
	private Integer book_sn;
	private String book_mgrNo;//Serial NO
	private String book_catalog;//书籍分类(原来的)
	private Integer catalog_id;//新增
	private String book_Name;//书籍名称
	private String book_desp;//描述
	private String book_Author;//作者
	private Timestamp book_publisher_year;//出版日期
	private String book_year;//出版社
	private Integer book_vol;//书籍数量
	private String book_open;//是否开放借阅
	private String book_cover;//书籍封面
	private String book_isbn;//书籍ISBN
	private Timestamp addtime;//添加时间
	
	private Integer available_quantity;//可借的数量
	private String categoryName;//可借的数量
	private boolean borrowFlag;//用户是否借过某本书  借过：true   没有借过：false
	private boolean haveBookFlag;//用户是否有预约或者未还的书  借过：true   没有借过：false
	private boolean haveReminderFlag;////用户是否设置过提醒  设置过：true   没有设置过：false
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "book_sn", unique = true, nullable = false,updatable=false)
	public Integer getBook_sn() {
		return book_sn;
	}
	public void setBook_sn(Integer book_sn) {
		this.book_sn = book_sn;
	}
	@Column(name = "book_mgrNo")
	public String getBook_mgrNo() {
		return book_mgrNo;
	}
	public void setBook_mgrNo(String book_mgrNo) {
		this.book_mgrNo = book_mgrNo;
	}
	@Column(name = "book_catalog")
	public String getBook_catalog() {
		return book_catalog;
	}
	public void setBook_catalog(String book_catalog) {
		this.book_catalog = book_catalog;
	}
	@Column(name = "book_Name")
	public String getBook_Name() {
		return book_Name;
	}
	public void setBook_Name(String book_Name) {
		this.book_Name = book_Name;
	}
	@Column(name = "book_desp")
	public String getBook_desp() {
		return book_desp;
	}
	public void setBook_desp(String book_desp) {
		this.book_desp = book_desp;
	}
	@Column(name = "book_Author")
	public String getBook_Author() {
		return book_Author;
	}
	public void setBook_Author(String book_Author) {
		this.book_Author = book_Author;
	}
	@Column(name = "book_year")
	public String getBook_year() {
		return book_year;
	}
	public void setBook_year(String book_year) {
		this.book_year = book_year;
	}
	@Column(name = "book_vol")
	public Integer getBook_vol() {
		return book_vol;
	}
	public void setBook_vol(Integer book_vol) {
		this.book_vol = book_vol;
	}
	@Column(name = "book_open")
	public String getBook_open() {
		return book_open;
	}
	public void setBook_open(String book_open) {
		this.book_open = book_open;
	}
	@Column(name = "book_cover")
	public String getBook_cover() {
		return book_cover;
	}
	public void setBook_cover(String book_cover) {
		this.book_cover = book_cover;
	}
	@Column(name = "catalog_id")
	public Integer getCatalog_id() {
		return catalog_id;
	}
	public void setCatalog_id(Integer catalog_id) {
		this.catalog_id = catalog_id;
	}
	@Column(name = "book_isbn")
	public String getBook_isbn() {
		return book_isbn;
	}
	public void setBook_isbn(String book_isbn) {
		this.book_isbn = book_isbn;
	}
	@Column(name = "addtime")
	public Timestamp getAddtime() {
		return addtime;
	}
	public void setAddtime(Timestamp addtime) {
		this.addtime = addtime;
	}
	
	/**
	 * @return the book_publish_year
	 */
	@Column(name = "book_publisher_year")
	public Timestamp getBook_publisher_year() {
		return book_publisher_year;
	}
	/**
	 * @param book_publish_year the book_publish_year to set
	 */
	public void setBook_publisher_year(Timestamp book_publisher_year) {
		this.book_publisher_year = book_publisher_year;
	}
	
	@Transient
	public Integer getAvailable_quantity() {
		return available_quantity;
	}
	public void setAvailable_quantity(Integer available_quantity) {
		this.available_quantity = available_quantity;
	}
	@Transient
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	@Transient
	public boolean isBorrowFlag() {
		return borrowFlag;
	}
	public void setBorrowFlag(boolean borrowFlag) {
		this.borrowFlag = borrowFlag;
	}
	@Transient
	public boolean isHaveBookFlag() {
		return haveBookFlag;
	}
	public void setHaveBookFlag(boolean haveBookFlag) {
		this.haveBookFlag = haveBookFlag;
	}
	@Transient
	public boolean isHaveReminderFlag() {
		return haveReminderFlag;
	}
	public void setHaveReminderFlag(boolean haveReminderFlag) {
		this.haveReminderFlag = haveReminderFlag;
	}
}
